<h2 class="title">结果显示</h2>
<form method="GET" action="index.php" id="form1">
<table class="tb_list" width="100%">
<tr class="title">
		<td class="list_td_zw_02">选择</td>
		<td class="list_td_zw_11">批复单号</td>
		<td class="list_td_zw_11">投资计划自编号</td>
		<td class="list_td_zw_04">申报人员</td>
		<td class="list_date">申请日期</td>
		<!--<td>批复日期</td>-->
		<td>计划备注</td>
		<!--<td>批复备注</td>-->
		<td class="list_td_zw_opt01">操作</td>
</tr>
{%foreach from=$arr item=arr_item%}
<tr>
		<td>
		<input type="checkbox" name="plan_reply[]" value="{%$arr_item.plan_reply_id%}">
		<input type="hidden" name="plan_reply_no_{%$arr_item.plan_reply_id%}" value="{%$arr_item.plan_reply_no%}">
		</td>
		<td>{%$arr_item.plan_reply_no%}</td>
		<td>{%$arr_item.investment_no%}</td>
		<td>{%$admin_info[$arr_item.admin_user_id]%}</td>
		<td>{%$arr_item.plan_reply_time|date_format:"%Y-%m-%d"%}</td>
		<!--<td>{%$arr_item.plan_reply|date_format:"%Y-%m-%d"%}</td>-->
		<td class="alignleft" title="{%$arr_item.plan_notes%}">{%cut_str str=$arr_item.plan_notes sublen=20%}</td>
		<!--<td title="{%$arr_item.plan_reply_content%}">{%cut_str str=$arr_item.plan_reply_content sublen=12%}</td>-->
		<td>
			<input type="hidden" name="c" value="zy_sell">
			<input type="hidden" name="m" value="add">
			<a href="index.php?c=zy_plan_reply&m=browse&plan_reply_id={%$arr_item.plan_reply_id%}&investment_no={%$arr_item.investment_no%}">详细</a>&nbsp;
		</td>
</tr>
{%foreachelse%}
<tr><td colspan="15">暂无内容</td></tr>
{%/foreach%}
{%if $arr%}
	<tr>
		<td class="alignleft" colspan="7">
		<button type="button" class="b-default" hidefocus="true" id="check_all" ><span><em>全选</em></span></button>	
		<button type="button" class="b-default" hidefocus="true" id="check_all_fan" ><span><em>反选</em></span></button>
		</td>
	</tr>
{%/if%}
</table>
{%if $arr_item%}
<div class="pagenation aligncenter">
	<div id="pager">{%$page_footer%}</div>
</div>
{%/if%}
<p class="btn_right">
	<button type="button" class="b-default" hidefocus="true" id="sub"><span><em>提交</em></span></button>	
	<button type="button" class="b-default" hidefocus="true" onclick="location='index.php?c=zy_sell&m=add'"><span><em>返回</em></span></button>
</p>
</form>
<script type="text/javascript">
$(document).ready(function(){
	//全选
	$("#check_all").click(function(){
		$("input[type=checkbox]").attr("checked",'checked' );
	});
	//反选
	$("#check_all_fan").click(function(){
		$("input[type=checkbox]").each(function(){
			if(true == this.checked)
			{
				this.checked = false;  
			}else{
				this.checked = true;
			}
		});
	});
	//判断是否选择批复
	$('#sub').click(function(){
		var checkbox_str = new Array();
		$("input[name=checkbox[]]:checked").each(function (){
			checkbox_str.push($(this).val());
		});	
		if(checkbox_str.length == 0)
		{
			alert('请选择批复');
			return false;
		}
		$("#form1").submit();	
	});
});

</script>